﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.ArticleCategorys;

namespace LeadThing.AbpZeroTemplate.ArticleCategorys.Dtos
{
    /// <summary>
    /// 文章类别列表Dto
    /// </summary>
    [AutoMapFrom(typeof(ArticleCategory))]
    public class ArticleCategoryListDto : EntityDto<long>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        public string Title { get; set; }
        /// <summary>
        /// 父类别ID
        /// </summary>
        [DisplayName("父类别ID")]
        public int ParentId { get; set; }
        /// <summary>
        /// 类别深度
        /// </summary>
        [DisplayName("类别深度")]
        public int Level { get; set; }
        /// <summary>
        /// 排序数字
        /// </summary>
        [DisplayName("排序数字")]
        public int SortId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }

        #region 扩展字段

        public string DisplayTitle { get; set; }

        #endregion
    }
}
